package com.jinlia.show.modules.base.system.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jinlia.show.common.core.entity.BaseEntity;
import com.jinlia.show.modules.base.config.DynamicSchemaConfig;
import lombok.Data;

/**
 * 会员卡积分变动记录
 */
@Data
@TableName(value = "erp_member_card_score_change", schema = DynamicSchemaConfig.schema_system)
public class MemberCardScoreChange extends BaseEntity {
    @TableId()
    private Long id;
    /**
     * 会员卡id
     */
    private Long memberCardId;

    /**
     * 来源类型:1:消费,2兑换,3调整
     * 见:MemberCardScoreSourceEnum
     */
    private Integer sourceType;

    /**
     * 来源对象ID
     */
    private Long sourceObjectId;

    /**
     * 本次变动积分，可为负数
     */
    private Integer scoreChange;

    /**
     * 剩余可用积分
     */
    private Integer availableScore;

    /**
     * 备注
     */
    private String remark;
}
